package com.wodsy.phoenix.dataobject.cms.model;

// Generated 2015-4-27 10:15:56 by Hibernate Tools 3.4.0.CR1

import static javax.persistence.GenerationType.IDENTITY;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.wodsy.phoenix.dataobject.base.PhoenixObject;
import com.wodsy.phoenix.dataobject.base.PhoenixRequest;
import com.wodsy.phoenix.dataobject.base.PhoenixResponse;

/**
 * IdxShopRecommended generated by hbm2java
 */
@Entity
@Table(name = "tb_idx_shop_recommended", catalog = "cms")
public class IdxShopRecommended extends PhoenixObject  implements PhoenixRequest,PhoenixResponse  {

	private Integer id;
	private int shopId;
	private String shopName;
	private Integer shopKeeperId;
	private String shopKeeperName;
	private String shopKeeperMotto;
	private String shopKeeperUrl;
	private String picBanner;
	private String picHref;
	private Integer status;
	private Date onlineTime;
	private Date offlineTime;
	private Date createTime;
	private Date updateTime;

	public IdxShopRecommended() {
	}

	public IdxShopRecommended(int shopId, String shopKeeperMotto,
			String picBanner, Integer status, Date onlineTime, Date offlineTime) {
		this.shopId = shopId;
		this.shopKeeperMotto = shopKeeperMotto;
		this.picBanner = picBanner;
		this.status = status;
		this.onlineTime = onlineTime;
		this.offlineTime = offlineTime;
	}

	public IdxShopRecommended(int shopId, String shopName,
			Integer shopKeeperId, String shopKeeperName,
			String shopKeeperMotto, String shopKeeperUrl, String picBanner,
			String picHref, Integer status, Date onlineTime, Date offlineTime,
			Date createTime, Date updateTime) {
		this.shopId = shopId;
		this.shopName = shopName;
		this.shopKeeperId = shopKeeperId;
		this.shopKeeperName = shopKeeperName;
		this.shopKeeperMotto = shopKeeperMotto;
		this.shopKeeperUrl = shopKeeperUrl;
		this.picBanner = picBanner;
		this.picHref = picHref;
		this.status = status;
		this.onlineTime = onlineTime;
		this.offlineTime = offlineTime;
		this.createTime = createTime;
		this.updateTime = updateTime;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "shop_id", nullable = false)
	public Integer getShopId() {
		return this.shopId;
	}

	public void setShopId(Integer shopId) {
		this.shopId = shopId;
	}

	@Column(name = "shop_name", length = 50)
	public String getShopName() {
		return this.shopName;
	}

	public void setShopName(String shopName) {
		this.shopName = shopName;
	}
	@Column(name = "shop_keeper_id")
	public Integer getShopKeeperId() {
		return this.shopKeeperId;
	}

	public void setShopKeeperId(Integer shopKeeperId) {
		this.shopKeeperId = shopKeeperId;
	}

	@Column(name = "shop_keeper_name", length = 45)
	public String getShopKeeperName() {
		return this.shopKeeperName;
	}

	public void setShopKeeperName(String shopKeeperName) {
		this.shopKeeperName = shopKeeperName;
	}
	@Column(name = "shop_keeper_motto", nullable = false, length = 200)
	public String getShopKeeperMotto() {
		return this.shopKeeperMotto;
	}

	public void setShopKeeperMotto(String shopKeeperMotto) {
		this.shopKeeperMotto = shopKeeperMotto;
	}
	
	@Column(name = "shop_keeper_url", length = 200)
	public String getShopKeeperUrl() {
		return this.shopKeeperUrl;
	}

	public void setShopKeeperUrl(String shopKeeperUrl) {
		this.shopKeeperUrl = shopKeeperUrl;
	}

	@Column(name = "pic_banner", nullable = false, length = 200)
	public String getPicBanner() {
		return this.picBanner;
	}

	public void setPicBanner(String picBanner) {
		this.picBanner = picBanner;
	}

	@Column(name = "pic_href", length = 200)
	public String getPicHref() {
		return this.picHref;
	}

	public void setPicHref(String picHref) {
		this.picHref = picHref;
	}

	@Column(name = "status", nullable = false)
	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "online_time", nullable = false, length = 19)
	public Date getOnlineTime() {
		return this.onlineTime;
	}

	public void setOnlineTime(Date onlineTime) {
		this.onlineTime = onlineTime;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "offline_time", nullable = false, length = 19)
	public Date getOfflineTime() {
		return this.offlineTime;
	}

	public void setOfflineTime(Date offlineTime) {
		this.offlineTime = offlineTime;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "create_time",updatable=false, length = 19)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "update_time", length = 19)
	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Override
	public String toString() {
		return "IdxShopRecommended [id=" + id + ", shopId=" + shopId
				+ ", shopName=" + shopName + ", shopKeeperMotto="
				+ shopKeeperMotto + ", picBanner=" + picBanner + ", picHref="
				+ picHref + ", status=" + status + ", onlineTime=" + onlineTime
				+ ", offlineTime=" + offlineTime + ", createTime=" + createTime
				+ ", updateTime=" + updateTime + "]";
	}

}
